﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsView;

namespace WindowsFormsPresenter.Department
{
    public class DepartmentsPresenter : Presenter<IDepartmentsView>
    {
        public DepartmentsPresenter(IDepartmentsView view)
            : base(view)
        {
        }

        public void Display()
        {
            View.Departments = Model.GetDepartmentsByBranch();
        }

        public void DisplayActive()
        {
            View.Departments = Model.GetDepartmentsActiveByBranch();
        }
    }
}
